/*
 * @Author: 杨伟韦
 * @Date: 2024-04-24 14:07:06
 * @LastEditors: 杨伟韦
 * @LastEditTime: 2024-10-07 17:06:16
 * @Description: 文件上传接口
 */
import axios from 'axios';

const baseURL = import.meta.env.APP_APIHOST;

const instance = axios.create({ baseURL });

// 获取文件上传token
export const createOssUploadToken = () => instance.post('/file/oss/createOssUploadToken');

// 文件上传
export const createOssUploadTokenV2 = (data: any) =>
  instance.post('/file/oss/createOssUploadTokenV2', data);
